Optimal. Leaf size=266 \[ \frac{(2 A b-a B) \sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{b^{3/2} d}-\frac{(A+i B) \sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \tan ^{-1}\left (\frac{\sqrt{-b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d \sqrt{-b+i a}}-\frac{(A-i B) \sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \tanh ^{-1}\left (\frac{\sqrt{b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d \sqrt{b+i a}}+\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.46149, antiderivative size = 266, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 10, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {4241, 3607, 3655, 6725, 63, 217, 206, 93, 205, 208} \[ \frac{(2 A b-a B) \sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{b^{3/2} d}-\frac{(A+i B) \sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \tan ^{-1}\left (\frac{\sqrt{-b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d \sqrt{-b+i a}}-\frac{(A-i B) \sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \tanh ^{-1}\left (\frac{\sqrt{b+i a} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d \sqrt{b+i a}}+\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4241
Rule 3607
Rule 3655
Rule 6725
Rule 63
Rule 217
Rule 206
Rule 93
Rule 205
Rule 208
Rubi steps
\begin{align*} \int \frac{A+B \tan (c+d x)}{\cot ^{\frac{3}{2}}(c+d x) \sqrt{a+b \tan (c+d x)}} \, dx &=\left (\sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \int \frac{\tan ^{\frac{3}{2}}(c+d x) (A+B \tan (c+d x))}{\sqrt{a+b \tan (c+d x)}} \, dx\\ &=\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}+\frac{\left (\sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \int \frac{-\frac{a B}{2}-b B \tan (c+d x)+\frac{1}{2} (2 A b-a B) \tan ^2(c+d x)}{\sqrt{\tan (c+d x)} \sqrt{a+b \tan (c+d x)}} \, dx}{b}\\ &=\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}+\frac{\left (\sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{-\frac{a B}{2}-b B x+\frac{1}{2} (2 A b-a B) x^2}{\sqrt{x} \sqrt{a+b x} \left (1+x^2\right )} \, dx,x,\tan (c+d x)\right )}{b d}\\ &=\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}+\frac{\left (\sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \left (\frac{2 A b-a B}{2 \sqrt{x} \sqrt{a+b x}}-\frac{A b+b B x}{\sqrt{x} \sqrt{a+b x} \left (1+x^2\right )}\right ) \, dx,x,\tan (c+d x)\right )}{b d}\\ &=\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}-\frac{\left (\sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{A b+b B x}{\sqrt{x} \sqrt{a+b x} \left (1+x^2\right )} \, dx,x,\tan (c+d x)\right )}{b d}+\frac{\left ((2 A b-a B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{x} \sqrt{a+b x}} \, dx,x,\tan (c+d x)\right )}{2 b d}\\ &=\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}-\frac{\left (\sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \left (\frac{i A b-b B}{2 (i-x) \sqrt{x} \sqrt{a+b x}}+\frac{i A b+b B}{2 \sqrt{x} (i+x) \sqrt{a+b x}}\right ) \, dx,x,\tan (c+d x)\right )}{b d}+\frac{\left ((2 A b-a B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^2}} \, dx,x,\sqrt{\tan (c+d x)}\right )}{b d}\\ &=\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}-\frac{\left ((i A-B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{(i-x) \sqrt{x} \sqrt{a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}-\frac{\left ((i A+B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{x} (i+x) \sqrt{a+b x}} \, dx,x,\tan (c+d x)\right )}{2 d}+\frac{\left ((2 A b-a B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{b d}\\ &=\frac{(2 A b-a B) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right ) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}}{b^{3/2} d}+\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}-\frac{\left ((i A-B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{i-(a+i b) x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}-\frac{\left ((i A+B) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}\right ) \operatorname{Subst}\left (\int \frac{1}{i-(-a+i b) x^2} \, dx,x,\frac{\sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{d}\\ &=-\frac{(A+i B) \tan ^{-1}\left (\frac{\sqrt{i a-b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right ) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}}{\sqrt{i a-b} d}+\frac{(2 A b-a B) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right ) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}}{b^{3/2} d}-\frac{(A-i B) \tanh ^{-1}\left (\frac{\sqrt{i a+b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right ) \sqrt{\cot (c+d x)} \sqrt{\tan (c+d x)}}{\sqrt{i a+b} d}+\frac{B \sqrt{a+b \tan (c+d x)}}{b d \sqrt{\cot (c+d x)}}\\ \end{align*}
Mathematica [A] time = 4.04006, size = 263, normalized size = 0.99 \[ \frac{\sqrt{\tan (c+d x)} \sqrt{\cot (c+d x)} \left (\frac{\sqrt{b} B \sqrt{\tan (c+d x)} (a+b \tan (c+d x))-\sqrt{a} (a B-2 A b) \sqrt{\frac{b \tan (c+d x)}{a}+1} \sinh ^{-1}\left (\frac{\sqrt{b} \sqrt{\tan (c+d x)}}{\sqrt{a}}\right )}{b^{3/2} \sqrt{a+b \tan (c+d x)}}+\frac{(-1)^{3/4} (A+i B) \tanh ^{-1}\left (\frac{\sqrt [4]{-1} \sqrt{-a-i b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{\sqrt{-a-i b}}+\frac{\sqrt [4]{-1} (B+i A) \tanh ^{-1}\left (\frac{\sqrt [4]{-1} \sqrt{a-i b} \sqrt{\tan (c+d x)}}{\sqrt{a+b \tan (c+d x)}}\right )}{\sqrt{a-i b}}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.959, size = 21197, normalized size = 79.7 \begin{align*} \text{output too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B \tan \left (d x + c\right ) + A}{\sqrt{b \tan \left (d x + c\right ) + a} \cot \left (d x + c\right )^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B \tan \left (d x + c\right ) + A}{\sqrt{b \tan \left (d x + c\right ) + a} \cot \left (d x + c\right )^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]